<%@ page language="java" import="java.util.*" contentType="application/msword; charset=UTF-8" %>
<%@ include file="/static/include/taglib.jsp" %>
<%response.setHeader("Content-Disposition", "attachment; filename=" + java.net.URLEncoder.encode("zfkh.doc", "UTF-8"));%>
<!DOCTYPE html>
<html>
    <head>
        <meta name="viewport" content="width=device-width"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <script src="${ctxStatic}/js/jquery-1.8.3.min.js?v=2.0" type="text/javascript"></script>
        <script src="${ctxStatic}/layui/layui.all.js" type="text/javascript"></script>
    </head>
    <body onload="sw()">
         <h2>${title}</h2>
        <div class="indexcontent">

            <div class="selftable" id="selftable">
                <table cellspacing="0" cellpadding="0" border="1" class="layui-table" style="margin:0;">
                    <thead>

                        <tr>
                            <th rowspan="2">序号</th>
                            <th rowspan="2">被评单位</th>
                            <th colspan="${titleh.size()}" style="text-align: center">单项得分</th>
                            <th rowspan="2">考评红线监测扣分</th>
                            <th rowspan="2">成绩内部监督得分</th>
                            <th rowspan="2">排名</th>


                        </tr>

                        <tr>
                            <c:forEach var="itemth" items="${titleh}" varStatus="idxStatus">
                                <th>${itemth.uassingredients}
                                    <br/>
                                    (${itemth.kpiweight}%)
                                </th>
                            </c:forEach>
                        </tr>
                    </thead>
                    <tbody>
                        <c:forEach var="item" items="${databody}" varStatus="idxStatus">
                            <tr>
                                <td>${idxStatus.index+1}</td>
                                <td>${item['orgname']}</td>
                                <c:forEach var="itembody" items="${titleh}">
                                    <td>${item[itembody.assindexidcolum]}</td>
                                </c:forEach>
                                <td>${item['redscore']}</td>
                                <td class="orgSum">${item['sumscore']}</td>
                                <td>${item["orderindex"]}</td>

                            </tr>
                        </c:forEach>

                    </tbody>
                </table>
            </div>
        </div>
        <script>
            function sw(){
            alert(1);
            }

        </script>
    </body>

</html>
